package com.llsydn.ndkdemo;

/**
 * @author lilinshen
 * @title c语言调用java
 * @description 请填写相关描述
 * @date 2018/10/18 16:43
 */
public class CJavaJNI {

    {
        //加载****.so模块
        System.loadLibrary("CommonC");
    }

    public native void callbackAdd();

    public native void callbackHello();

    public int add(int x, int y) {
        System.out.println("result==" + (x + y));
        return x + y;
    }

    public static void hello(String s) {
        System.out.println("s==" + s);
    }

}
